//
//  EpointWebServiceUtil.h
//  EpointFrame5
//
//  Created by 李亚春 on 13-12-17.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

@interface EpointWebServiceUtil : NSObject<NSURLConnectionDelegate,NSURLConnectionDelegate,NSURLConnectionDataDelegate,NSURLConnectionDownloadDelegate>{
    BOOL finished;
}
-(id)initWithUrl:(NSString *)ws_url namespace:(NSString *)_namespace method:(NSString *)_method;
-(void)addParameterForString:(NSString *)name value:(NSString *)value;
-(void)addParameterForInteger:(NSString *)name value:(int)value;
-(NSString *)start;
-(NSString *)starts:(NSString*)CertBase64;
@property NSString *wsurl,*wsmethod,*wsnamespace;
@property NSMutableString *funpars;


+ (ASIHTTPRequest *)getASISOAP11Request:(NSString *) WebURL
                         webServiceFile:(NSString *) wsFile
                           xmlNameSpace:(NSString *) xmlNS
                         webServiceName:(NSString *) wsName
                           wsParameters:(NSMutableArray *) wsParas;

+ (NSString *)getSOAP11WebServiceResponse:(NSString *) WebURL
                           webServiceFile:(NSString *) wsFile
                             xmlNameSpace:(NSString *) xmlNS
                           webServiceName:(NSString *) wsName
                             wsParameters:(NSMutableArray *) wsParas;

+ (NSString *)getSOAP11WebServiceResponseWithNTLM:(NSString *) WebURL
                                   webServiceFile:(NSString *) wsFile
                                     xmlNameSpace:(NSString *) xmlNS
                                   webServiceName:(NSString *) wsName
                                     wsParameters:(NSMutableArray *) wsParas
                                         userName:(NSString *) userName
                                         passWord:(NSString *) passWord;
@end
